package com.shike.hq.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shike.hq.entity.Unit;
import com.shike.hq.mapper.UnitMapper;
import com.shike.hq.service.UnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * UnitService的接口实现类
 */
@Service
public class UnitServiceImpl extends ServiceImpl<UnitMapper, Unit> implements UnitService {

    @Autowired
    private UnitMapper unitMapper;

    @Override
    public ArrayList<Unit> selectAllUnitByAreaId(long areaId) {
        return unitMapper.selectAllUnitByAreaId(areaId);
    }
}
